package edu.tjut.tjutcommunity.service;

import edu.tjut.tjutcommunity.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import edu.tjut.tjutcommunity.entity.PageResult;
import edu.tjut.tjutcommunity.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yhh
 * @since 2022-04-18
 */
public interface CommentService extends IService<Comment> {
    PageResult<Comment> getComment(Integer fid,Integer pageNo);
    boolean sendComment(Comment comment, User user, Integer fid);
    Integer selectCountByFid(Integer fid);

    List<Comment> getAllComment(Integer fid);
}
